package com.zp.self.module.level_5_设计模式.行为型模式.Ⅱ_策略模式;

import lombok.Data;
import lombok.Getter;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/7/2 6:11
 * @description ：
 */
@Data
public class SalesMan {

    private Strategy strategy;
    public SalesMan(Strategy strategy) {
        this.strategy = strategy;
    }

   public void SalesManShow(){
        strategy.show();
   }
}
